package org.freeone.oauth2.authorizeserver.dao;

import org.freeone.oauth2.authorizeserver.entity.ClientEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface ClientRepository extends JpaRepository<ClientEntity, Integer> {

    Optional<ClientEntity> findByClientId(String clientId);

    ClientEntity findByClientSecret(String clientSecret);
}
